<include file="Public:header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <div class="nav">
        <ul class="cc">
            <li <if condition=" $_GET['sendtype'] eq 1 ">class="current"</if>><a href="{:U('sysmsg',array('sendtype'=>1))}">发出的站内信</a></li>
            <li <if condition=" $_GET['sendtype'] eq 2 ">class="current"</if>><a href="{:U('sysmsg',array('sendtype'=>2))}">收到的站内信</a></li>
            <li><a href="{:U('sysmsgadd')}">写站内信</a></li>
        </ul>
    </div>
    <div class="h_a">搜索</div>
    <form method="post" action="{:U('sysmsg')}">
        <input type="hidden" value="1" name="search">
        <input type="hidden" value="{$sendtype}" name="sendtype"/>
        <div class="search_type cc mb10">
            <div class="mb10">
        <span class="mr20">时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">-<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}">
            <select class="select_3" name="types" style="width: 90px">
                <option value='0' <if condition=" $types == '0' "> selected</if>>全部</option>
                <option value='1' <if condition=" $types == '1' "> selected</if>>系统消息</option>
                <option value='2' <if condition=" $types == '2' "> selected</if>>会员消息</option>
            </select>
            <select class="select_3" name="searchtype" style="width: 70px">
                <option value='1' <if condition=" $searchtype == '1' "> selected</if>>会员名</option>
                <option value='2' <if condition=" $searchtype == '2' "> selected</if>>内容</option>
            </select>
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$_GET.keyword}" placeholder="请输入关键字...">
        <button class="btn">搜索</button>
        </span>
            </div>
        </div>
    </form>
    <form class="J_ajaxForm" action="" method="post">
    <div class="table_user">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <td width="3%"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
                <td width="5%">审核</td>
                <td width="12%" align="left" >用户</td>
                <td align="left" >留言</td>
                <td width="15%" align="left" >时间</td>
                <td width="5%" align="left" >操作</td>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.id}"></td>
                    <td>{$vo.status|showStatus}</td>
                    <td><if condition="$vo.userid eq ''">全部会员<else/>{$vo.userid|getNickName}</if></td>
                    <td>{$vo.content}</td>
                    <td>{$vo.create_time|date='Y-m-d H:i',###}</td>
                    <td><a href="{:U('User/sysmsgedit',array('id'=>$vo[id]))}">编辑</a></td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="p10">
            <div class="pages"> {$Page} </div>
        </div>
    </div>
        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <label class="mr20"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
                <button class="btn J_ajax_submit_btn" type="submit" data-msg="确认删除这些信息?" data-subcheck="true" data-action="{:U('User/sysmsg_deleteAll')}">删除</button>
            </div>
        </div>
    </form>
</div>
<script src="__JS__/common.js"></script>
<script src="__JS__/content_addtop.js"></script>
</body>
</html>